<%
	String url = request.getRequestURI();
	if(request.getQueryString()!=null)
	{
		url += "?" + request.getQueryString();
	} 

	String str = Utils.GetHtml("https://api.stackexchange.com/2.0/search?page=1&order=desc&sort=activity&tagged="+url.replace("/questions/tagged/","")+"&site=stackoverflow&filter=!%295E8nJbLat8RbqZQunhfkTSdcTrx", "utf-8");
	
	Gson gson = new Gson();
	
	Questions question = gson.fromJson(str, Questions.class);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="gson.Questions"%>
<%@page import="com.google.gson.Gson"%>
<%@page import="libaray.Utils"%>
<%@page import="org.jsoup.select.Elements"%>
<%@page import="org.jsoup.nodes.Element"%>
<%@page import="java.net.URL"%>
<%@page import="org.jsoup.Jsoup"%>
<%@page import="org.jsoup.nodes.Document"%>
<html xmlns="http://www.w3.org/1999/xhtml"  dir="ltr">
	<head>
		<title>Tag : <%=url.replace("/questions/tagged/","") %></title>
		<meta name="description" content="Tag : <%=url.replace("/questions/tagged/","") %>.Garden questions and answers for programming, software, hardware, computer"/>
		<meta name="Keywords" content="<%=url.replace("/questions/tagged/","") %>,java,php,ubutu,mysql,sql,google app engine,linux,centos"/>	
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta id="metaLanguage" http-equiv="Content-Language" content="" />
		<link rel='stylesheet' type='text/css' href='/css/faq.css' />
	</head>
	<body>
		<div class="tl">
			
		</div>
		<div class="hd">
			<a href="/" class="lg"><img src="/images/logwo.jpg" alt="logo"/></a>
			<div class="advh">
				<script type="text/javascript">
google_ad_client = "ca-pub-1271973886625217";
/* garden 468 */
google_ad_slot = "5677374104";
google_ad_width = 468;
google_ad_height = 60;

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
			</div>
			<div class="clear"></div>
		</div>
		
		<div class="bd">
			<div class="bl">
				<form action="/search.html" id="cse-main-search-box">
					<input type="hidden" name="cx"
						value="014427715721718913619:taaptwrkwpk" /> <input type="hidden"
						name="cof" value="FORID:10" /> <input type="hidden" name="ie"
						value="UTF-8" /> <input id="cse-main-search-text" type="text"
						name="q" autocomplete="on" class="input_search" style="width:450px;"/> <input type="submit" name="sa"
						value="Search" />
				</form><br/><br/>
				<h1><%=url.replace("/questions/tagged/","") %></h1>
				<div class="adt">
					<!-- AddThis Button BEGIN -->
					<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
					<a class="addthis_button_preferred_1"></a>
					<a class="addthis_button_preferred_2"></a>
					<a class="addthis_button_preferred_3"></a>
					<a class="addthis_button_preferred_4"></a>
					<a class="addthis_button_compact"></a>
					<a class="addthis_counter addthis_bubble_style"></a>
					</div>
					<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
					<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4d6f3cdb1d190d60"></script>
					<!-- AddThis Button END -->
				</div>
				<div class="adt so">
					<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
					<g:plusone size="standard" count="true"></g:plusone>
				</div>
				<div class="clear"></div>
				<ul class="lq">
						<%
						if(question.items.size()>0)
						{
							for(int i=0;i<question.items.size();i++)
							{
						%>
							<li>
								<h1 class="float_none"><a href="<%=question.items.get(i).getLink().replace("http://stackoverflow.com","") %>" title=""><%=question.items.get(i).getTitle() %></a></h1>
								<p>
									<%
										String des = question.items.get(i).getBody().replaceAll("\\<.*?\\>", "");
										if(des.length() > 200)
										{
											des = des.substring(0,200)+" ...";
										}
										out.println(des);
									%>
								</p>  
								<%
								for(int j=0;j<question.items.get(i).getTags().size();j++)
								{
								%>
								<a href="/questions/tagged/<%=question.items.get(i).getTags().get(j) %>"><%=question.items.get(i).getTags().get(j) %></a>
								<%
								}
								%>
							</li>
						<%
							}
						}
						%>
				</ul>
			</div>
			<div class="br">
				<script type="text/javascript">
google_ad_client = "ca-pub-1271973886625217";
/* garden 160 */
google_ad_slot = "7748382713";
google_ad_width = 160;
google_ad_height = 600;

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript">
google_ad_client = "ca-pub-1271973886625217";
/* garden 160 */
google_ad_slot = "7748382713";
google_ad_width = 160;
google_ad_height = 600;

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
			</div>
			<div class="clear"></div>
		</div>
		
		
		<div class="ft">
			Question Network @ 2012 All rights reserved.
			<a href="/privacy-policy.jsp">Privacy policy</a>
			<br/><br/>
           
			<img src="http://code.google.com/appengine/images/appengine-silver-120x30.gif" alt="Powered by Google App Engine" />
		</div>
	</body>
</html>	